package com.redoor.iot.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.redoor.iot.model.Menu;

@Mapper
public interface MenuMapper {
    int deleteByPrimaryKey(Long menuId);

    int insert(Menu record);

    int insertSelective(Menu record);

    Menu selectByPrimaryKey(Long menuId);

    int updateByPrimaryKeySelective(Menu record);

    int updateByPrimaryKey(Menu record);
    
    List<String> listUserPerms(Long id);
    
    List<String> listUrl(Long id);
    
    /**
     * 查询菜单集合
     * @param id
     * @return
     */
    List<Menu> listMenuByUserId(Long id);
}